Security News
JSR Working Group Kicks Off with Ambitious Roadmap and Plans for Open Governance
At its inaugural meeting, the JSR Working Group outlined plans for an open governance model and a roadmap to enhance JavaScript package management.
to-iso-string-x
Advanced tools
Cross-browser toISOString support.
module.exports
⇒ string
⏏This method returns a string in simplified extended ISO format (ISO 8601), which is always 24 or 27 characters long (YYYY-MM-DDTHH:mm:ss.sssZ or ±YYYYYY-MM-DDTHH:mm:ss.sssZ, respectively). The timezone is always zero UTC offset, as denoted by the suffix "Z".
Kind: Exported member
Returns: string
- Given date in the ISO 8601 format according to universal time.
Throws:
TypeError
If date is not a Date object.RangeError
If date is invalid.Param | Type | Description |
---|---|---|
date | Object | A Date object. |
Example
import toISOString =from 'to-iso-string-x';
toISOString(new Date(0)); // '1970-01-01T00:00:00.000Z'
FAQs
Cross-browser toISOString support.
The npm package to-iso-string-x receives a total of 143 weekly downloads. As such, to-iso-string-x popularity was classified as not popular.
We found that to-iso-string-x demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
At its inaugural meeting, the JSR Working Group outlined plans for an open governance model and a roadmap to enhance JavaScript package management.
Security News
Research
An advanced npm supply chain attack is leveraging Ethereum smart contracts for decentralized, persistent malware control, evading traditional defenses.
Security News
Research
Attackers are impersonating Sindre Sorhus on npm with a fake 'chalk-node' package containing a malicious backdoor to compromise developers' projects.